package com.fenghongzhang.day005;

import android.view.View;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer;

import java.util.List;

public class MyAdapter extends BaseQuickAdapter<Video, BaseViewHolder> {
    int i = 0;
    public MyAdapter(int layoutResId, @Nullable List<Video> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Video item) {
        StandardGSYVideoPlayer standardGSYVideoPlayer = helper.getView(R.id.gsy);
        standardGSYVideoPlayer.setUp(TestVideoUrl.videoUrls[i],true,"meinv");
        standardGSYVideoPlayer.startPlayLogic();
        i++;
    }
}
